
def var_func(data_list, method = None):
    data_num = len(data_list)
    if method is not None:
        data_num = data_num -1

    data_mean = sum(data_list) / data_num
    return sum([(i-data_num)** 2 for i in data_list])/data_num
